package com.zbkj.front.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel
public class LastRecordMonthVO {

    @ApiModelProperty(value = "是否有记录", example = "true")
    private Boolean havaRecord;

    @ApiModelProperty(value = "月份", example = "2024-03")
    private String month;

    public static LastRecordMonthVO generateFalse() {
        LastRecordMonthVO lastRecordMonthVO = new LastRecordMonthVO();
        lastRecordMonthVO.setHavaRecord(false);
        return lastRecordMonthVO;
    }

    public static LastRecordMonthVO generate(String month) {
        LastRecordMonthVO lastRecordMonthVO = new LastRecordMonthVO();
        lastRecordMonthVO.setHavaRecord(true);
        lastRecordMonthVO.setMonth(month);
        return lastRecordMonthVO;
    }
}

